package com.ndp.fb.rdb.api;

import com.ndp.fb.rdb.model.UserAudienceTemplate;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Sisi on 15-1-20.
 */
public interface UserAudienceTemplateRdbService extends Serializable {
    Long saveUserAudienceTemplate(UserAudienceTemplate template);


    List<UserAudienceTemplate> findByCompanyIdAndConfigurationAndConnectionObject(
            String userId, Long productConfigurationId, Long fbConnectionObjectId);


    Long countByCompanyConnectionObjectProductCfgAndName(Long companyId,
			Long fbConnectionObjectId, Long productCfgId, String name);
    
}
